package com.joinval.common.constant;

import java.util.Arrays;
import java.util.List;

/**
 * @author liliang
 * @version 1.0
 * @description 公共常量定义
 * @date 2024/5/17
 **/
public class CommonConst {

    public static final int BATCH_SIZE = 10000;

    /**
     * 删除状态(0:正常,-1:已删除)
     */
    public static final Integer DATA_NORMAL = 0;
    public static final Integer DATA_DEL = -1;

    /**
     * 用户状态  0：禁用   1：正常
     */
    public static final Integer USER_STATUS_NORMAL = 1;

    /**
     *  行政级别： 1市级；5区级；10街级
     */
    public static final String LEVEL_CITY = "1";
    public static final String LEVEL_COUNTY = "5";
    public static final String LEVEL_TOWN = "10";


    /**
     * 检查类型 1任务检查；2随机检查
     */
    public static final String CHECK_TYPE_DEF = "1";
    public static final String CHECK_TYPE_RNG = "2";

    /**
     * 分配方式 1平均；2比例
     */
    public static final String ASSIGN_AVG = "1";
    public static final String ASSIGN_RATIO = "2";

    /**
     * 燃气种类 1天燃气; 2液化气; 3电;4植物油
     */
    public static final String GAS = "1";
    public static final String LIP_GAS = "2";
    public static final String ELECTRO = "3";
    public static final String VEGETABLEOIL = "4";
    public static final List<String> GAS_TYPE = Arrays.asList(GAS, LIP_GAS, ELECTRO,VEGETABLEOIL);

    /**
     * 检查是否合格：1是;2否
     */
    public static final Integer CHECK_OK = 1;
    public static final Integer CHECK_NO = 2;

    /**
     * 检查项目类型：0是检查项;-1线索项
     */
    public static final Integer ITEM_TYPR_CHECK = 0;
    public static final Integer ITEM_TYPR_CLUB = -1;

    /**
     * 审批状态： 1同意；2驳回
     */
    public static final String AUDIT_OK = "1";
    public static final String AUDIT_NO = "2";

    // 上海 city id
    public static final Long SH_CODE = 73L;
    // 上海 province_id
    public static final Long SH_PROVINCE_CODE = 9L;


    /**
     * 缓存超时时间 ms , 30分钟
     */
    public static final long CACHE_TIME_OUT = 1800000;

    /**
     * 缓存的key前缀
     */
    public static final String CACHE_BEFORE_KEY = "GNT";

    /**
     * 检查员的bucket
     */
    public static final String INSPECTOR_BUCKET = "inspector";

    public static final String JOINVAL_BUCKET = "joinval";

    /**
     * admin账号id
     */
    public static final Long ADMIN_USER_ID = 1L;

    /**
     * 年检状态： 1:未检查 2:已检查
     */
    public static final String NOT_YEAR_CHECK = "1";
    public static final String YEAR_CHECK = "2";

    /**
     * 发布状态： 0：待发布 1：已发布
     */
    public static final Integer UNPUBLISHED = 0;
    public static final Integer PUBLISHED = 1;
    // 是否歇业 1.正常  2.歇业
    public static final Integer NORMAL = 1;
    public static final Integer CLOSURE_BUSINESS = 2;
}
